{assign var = tsqunt value = 0} {assign var = trqunt value = 0} {assign var = tsr value = 0} {assign var = tstotal value = 0} {assign var = trtotal value = 0} {assign var = tec value = 0}

ك المبيعات : {$tsqunt}

ك المردود : {$trqunt}

الكميه : {$tsr}

ج المبيعات : {$tstotal}

ج المردود : {$trtotal}

الاجمالى : {$tec}

{foreach $productcatsdatas as $productcatsdata} {assign var = tsqunt value = $tsqunt + $productcatsdata.squnt} {assign var = trqunt value = $trqunt + $productcatsdata.rqunt} {assign var = tsr value = $tsr + ($productcatsdata.squnt - $productcatsdata.rqunt)} {assign var = tstotal value = $tstotal + $productcatsdata.stotal} {assign var = trtotal value = $trtotal + $productcatsdata.rtotal} {assign var = tec value = $tec + ($productcatsdata.stotal - $productcatsdata.rtotal)} {/foreach}
التصنيف ك المبيعات ك المردود الكميه ج المبيعات ج المردود الاجمالى
{$productcatsdata.productCatName} {$productcatsdata.squnt} {$productcatsdata.rqunt} {$productcatsdata.squnt - $productcatsdata.rqunt} {$productcatsdata.stotal} {$productcatsdata.rtotal} {$productcatsdata.stotal - $productcatsdata.rtotal}

ك المبيعات : {$tsqunt}

ك المردود : {$trqunt}

الكميه : {$tsr}

ج المبيعات : {$tstotal}

ج المردود : {$trtotal}

الاجمالى : {$tec}

{literal} {/literal}